from couchdbkit.client import Server
from django.shortcuts import render_to_response
from models import Team


def home(request):
    # server object
    server = Server()

    # create database
    db = server.get_or_create_db('greeting')
    Team.set_db(db)
    team=Team(teanId=12,teamName='dfg',country='dfgdf')
    team.save()
    return render_to_response('index.html')